package com.upbos.upm.entity;

import com.upbos.data.persistence.annotation.Column;
import com.upbos.data.persistence.annotation.Table;
import lombok.Data;

import java.io.Serializable;

@Data
@Table("upm_user_cfg")
public class UserCfg implements Serializable {
    @Column("user_id")
    private String uid;

    @Column("key_")
    private String key;

    @Column("value_")
    private String value;

    @Override
    public boolean equals(Object obj) {
        UserCfg cfg = (UserCfg) obj;
        if (cfg.key.equals(key)) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
